﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class User
    {
        private int zhanghao;
        private string name;
        private string password;

        public int Zhanghao
        {
            get { return this.zhanghao; }
            set { this.zhanghao = value; }
        }

        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }

        public string Password
        {
            get { return this.password;}
            set { this.password = value;}
        }
        public void Msg()
        {
            Console.WriteLine("用户的账号{0}，用户名{1}，密码为{2}",this.zhanghao,this.name,this.password); 
        }
    }
}
